# 导包
import app
import unittest

from script.login import TestLoginAPI
from script.test03_staff import TestStaffAPI
from htmltestreport import HTMLTestReport


# 指定报告保存位置
report = app.BASE_DIR + "/report/report.html"

# 组装测试套件
suite = unittest.TestSuite()
# 登录成功
suite.addTest(TestLoginAPI("test01_login"))
# 添加员工
suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(TestStaffAPI))

# 创建runner
runner = HTMLTestReport(report, title="登录接口自动化测试")

# 执行suite
runner.run(suite)













